from appium.webdriver.common.mobileby import MobileBy

tongxunlu = {
    "通讯录":{
        "添加成员":[MobileBy.XPATH,'//*[contains(@text,"添加成员")]']
    },
    "企业通讯录列表":{
        "列表成员1":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=3]'],
        "列表成员2":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=4]'],
        "列表成员3":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=5]']
    },
    "企业通讯录列表姓名":{
        "列表成员1姓名":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=3]//*[@class="android.widget.TextView"]'],
        "列表成员2姓名":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=4]//*[@class="android.widget.TextView"]'],
        "列表成员3姓名":[MobileBy.XPATH,'//*[@resource-id="com.tencent.wework:id/f21" and @index=5]//*[@class="android.widget.TextView"]']
    }
          }